package com.qianya.system.manage.web.login.model;

import com.baomidou.mybatisplus.annotation.IdType;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.util.List;

import com.qianya.model.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户
 * </p>
 *
 * @author lhl
 * @since 2020-07-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="LoginUsers对象", description="用户")
public class LoginUsers implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "U_ID", type = IdType.UUID)
    private String uId;

    @ApiModelProperty(value = "用户名")
    @TableField("U_USERNAME")
    private String uUsername;

    @ApiModelProperty(value = "密码")
    @TableField("U_PASSWORD")
    private String uPassword;

    @ApiModelProperty(value = "姓名")
    @TableField("U_NICKNAME")
    private String uNickname;

    @ApiModelProperty(value = "头像")
    @TableField("U_AVATAR")
    private String uAvatar;

    @ApiModelProperty(value = "性别 1男0女")
    @TableField("U_SEX")
    private Integer uSex;

    @ApiModelProperty(value = "邮箱")
    @TableField("U_EMAIL")
    private String uEmail;

    @ApiModelProperty(value = "类型 1用户0管理")
    @TableField("U_TYPE")
    private Integer uType;

    @ApiModelProperty(value = "状态 0正常1冻结2删除")
    @TableField("U_STATUS")
    private Integer uStatus;

    @ApiModelProperty(value = "创建时间")
    @TableField("U_CREATE_TIME")
    private Date uCreateTime;

    @ApiModelProperty(value = "修改时间")
    @TableField("U_UPDATE_TIME")
    private Date uUpdateTime;

    @ApiModelProperty(value = "创建人")
    @TableField("U_CREATE_ID")
    private String uCreateId;

    @ApiModelProperty(value = "修改人")
    @TableField("U_UPDATE_ID")
    private String uUpdateId;

    @ApiModelProperty(value = "手机号")
    @TableField("U_PHONE")
    private String uPhone;

    @TableField(exist = false)
    @ApiModelProperty(value = "部门信息")
    private List<LoginDept> loginDept;

    @TableField(exist = false)
    @ApiModelProperty(value = "角色信息")
    private List<LoginRole> loginRole;



}
